<include file="public:header" />
<include file="public:left" />
<style>
    td {
        text-align: center;
    }
</style>
<style type="text/css" src="__STATIC__/admin/css/style.css" ></style>
<style type="text/css" src="__STATIC__/admin/js/laydate/need/laydate.css" ></style>
<script src="__STATIC__/admin/js/laydate/laydate.js"></script>
<section>
    <div class="page_title">
        <h2 class="fl">奖品列表</h2>
        <a class="fr" href="{:url('Prizes/add',array('activity_id'=>$aid))}">奖品添加</a>
    </div>
    <table class="table">
        <tr>
            <th>奖品标题</th>
            <th>奖品图片</th>
            <th>奖品概率(根据计算概率  数值越大越容易中)</th>
            <th>奖品金额</th>
            <th>奖品状态</th>
            <th>奖品库存</th>
            <th>操作</th>
        </tr>

        <volist name="list" id="vo" key="k">
        <tr>
            <td>
                {$vo.prize_name}
            </td>
            <td>
                <img src="{$config_update}{$vo.prize_img}" width="150" height="90">
            </td>
            <td>{$vo.probability}%</td>
            <td>{$vo.money}元</td>
            <td><eq name="vo.type" value='1'>中奖</eq><eq name="vo.type" value='2'>未中奖</eq></td>
            <td>{$vo.stock}</td>
            <td>
                <a href="{:url('Prizes/add',array('activity_id'=>$aid,'id'=>$vo.id))}" class="inner_btn">编辑</a>
            </td>
        </tr>
        </volist>
    </table>
    {$list->render()}
</section>
</div>
</section>
</body>

</html>